package cn.edu.scau.cmi.zhuangzhihong.hibernate.dao;

import javafx.beans.property.LongProperty;
import javafx.beans.property.SimpleLongProperty;
import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;

public class StudentInformation {
	private final LongProperty sid;
	private final StringProperty sname;
	private final Teacher teacher;
	
	public LongProperty getSid() {
		return sid;
	}
	public StringProperty getSname() {
		return sname;
	}
	public Teacher getTeacher() {
		return teacher;
	}
	@Override
	public String toString() {
		return "StudentInformation [sid=" + sid + ", sname=" + sname + ", teacher=" + teacher + "]";
	}
	public StudentInformation(Long sid, String sname, Teacher teacher) {
		super();
		this.sid = new SimpleLongProperty(sid);
		this.sname = new SimpleStringProperty(sname);
		this.teacher = teacher;
	}
//	public StudentInformation(LongProperty sid2, StringProperty sname2) {
//		// TODO 自动生成的构造函数存根
//		this.sid = sid2;
//		this.sname = sname2;
//	
//	}
	
}
